#include "Tile.h"


Tile::Tile()
{
	mp_collider = new Collider();
}

Tile::Tile(int info, int x0, int y0, int xf, int yf, bool isRigid)
{
	m_info = info;
	mp_collider = new Collider(x0, y0, xf, yf);
	mp_collider->SetCollisions(isRigid);
}

Tile::~Tile()
{
	delete(mp_collider);
}

Collider * Tile::GetCollider()
{
	return mp_collider;
}
void Tile::SetCollider(Collider * collider)
{
	mp_collider = collider;
}
int Tile::GetInfo()
{
	return m_info;
}
void Tile::SetInfo(int info)
{
	m_info = info;
}
